import Cookies from "js-cookie";

const key="auth_token";

//设置凭据
export const set_token=(token)=>{
    Cookies.set(key,token);
}

//获取登录凭证
export const get_token=()=>{
    return Cookies.get(key);
}


//移除凭证
export const remove_token=()=>{
    Cookies.remove(key);
}

